#define _CRT_SECURE_NO_WARNINGS 1

#include "List.h"

void SL()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPrint(plist);
	LTPushBack(plist, 2);
	LTPrint(plist);
	LTPushBack(plist, 3);
	LTPrint(plist);
	LTPushBack(plist, 4);
	LTPrint(plist);

	LTPushFront(plist, 5);
	LTPrint(plist);
	LTPushFront(plist, 6);
	LTPrint(plist);
	LTPushFront(plist, 7);
	LTPrint(plist);

	/*LTPopBack(plist);
	LTPrint(plist);
	LTPopBack(plist);
	LTPrint(plist);

	LTPopFront(plist);
	LTPrint(plist);
	LTPopFront(plist);
	LTPrint(plist);*/

	LTNode* ret = LTFind(plist, 2);
	LTInsert(ret, 8);
	LTPrint(plist);

	LTErase(ret);
	LTPrint(plist);

	LTDestroy(plist);
	plist = NULL;

}

int main()
{
	SL();
	return 0;
}